import { createSSRApp } from "vue";
import App from "./App.vue";
// 引入pinia
import {createPinia}from 'pinia';
import CustomTab from '@/components/custom-tab.vue'
import CustomTop from '@/components/custom-top.vue'
import CustomInput from '@/components/custom-input.vue'
import heartcart from '@/components/heartcart.vue'

export function createApp() {
  const app = createSSRApp(App);
  app.use(createPinia());
  app.component('custom-tab', CustomTab)
  app.component('custom-top', CustomTop)
  app.component('custom-input', CustomInput)
  app.component('heartcart',heartcart)
  
  return {
    app,
  };
}
